import {createRouter, createWebHashHistory, createWebHistory} from 'vue-router'


const routes =  [
    {
        path: '/',
        name: 'index',
        redirect: "/home",
        component: () => import('@main-window/views/Index.vue'),
        children: [
            {
                path: "/home",
                name: "home",
                component: () => import("@main-window/views/Home.vue")
            },
            {
                path: "/currentGaming",
                name: "currentGaming",
                component: () => import("@main-window/views/CurrentGaming.vue")
            },
            {
                path: "/developer-tool",
                name: "developerTool",
                component: () => import("@main-window/views/DeveloperToolWrapper.vue")
            },
            {
                path: "/gameRecord/search",
                name: "gameRecordSearch",
                component: () => import("@main-window/views/GameRecordSearch.vue")
            }

        ]
    },
];

const router = createRouter({
    history: createWebHashHistory(import.meta.env.BASE_URL),
    routes:routes,
})

export default router
